import Vue from 'vue'
import Router from 'vue-router'

//组件模块
import HelloWorld from '@/components/HelloWorld'
import Login from '@/components/Login'
import Index from '@/components/Index'


Vue.use(Router)

export default new Router({
    routes: [
        { path: '/', name: 'HelloWorld', component: HelloWorld },
        { path: '/login', name: 'Login', component: Login },
        { path: '/index',  name: 'Index', component: Index},
    ]
})